﻿<controls:ChildWindow x:Class="LantinxLBS.Views.FrmWorkItemType"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="400" Height="170" 
           Title="添加任务类型">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="83*" />
            <ColumnDefinition Width="295*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="26" />
            <RowDefinition Height="26"/>
            <RowDefinition Height="26"/>
            <RowDefinition Height="0.188*"/>
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid.Resources>
            <DataTemplate x:Key="styleWorkType">
                <StackPanel>
                    <TextBlock Text="{Binding Name}" Width="70"/>
                </StackPanel>
            </DataTemplate>
        </Grid.Resources>
        <Button x:Name="CancelButton" Content="退出" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0" Grid.Row="4" Grid.Column="1" />
        <Button x:Name="OKButton" Content="确定" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,79,0" Grid.Row="4" Grid.Column="1" />
        <TextBlock HorizontalAlignment="Left" Name="textBlock1" Text="任务类型名:" Margin="0,2,0,1" Width="83" />
        <TextBox Grid.Column="1" HorizontalAlignment="Left" Name="txtWorkItemType" Width="295" />
        <TextBlock Margin="0,3,8,0" Grid.Row="1" TextWrapping="Wrap" Text="任务类型:"/>
        <TextBlock Margin="0,4,18,0" Grid.Row="2" TextWrapping="Wrap" Text="任务优先级:"/>
        <ComboBox x:Name="cmbWorkType" Grid.Column="1" Margin="0,0,133,0" Grid.Row="1" ItemTemplate="{StaticResource styleWorkType}"/>
        <ComboBox x:Name="cmbWorkLevel" Grid.Column="1" Margin="0,0,133,0" Grid.Row="2" ItemTemplate="{StaticResource styleWorkType}"/>
    </Grid>
</controls:ChildWindow>